package com.autism.day02.redpackage;

import java.util.ArrayList;

public class MainRedPackage{
    public static void main(String[] args) {
        Manage manage = new Manage(100,"autism");

        Member memberA = new Member(0,"A");
        Member memberB = new Member(0,"B");
        Member memberC = new Member(0,"C");

        manage.show();
        memberA.show();
        memberB.show();
        memberC.show();

        System.out.println("===================================");
        ArrayList<Double> redList = manage.send(20,3);

        memberA.receive(redList);
        memberB.receive(redList);
        memberC.receive(redList);

        manage.show();
        memberA.show();
        memberB.show();
        memberC.show();
    }
}
